The attached patch fixes a race condition that occurs if after the
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Mon, 3 Apr 2006 17:32:43 +0000 (18:32 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Mon, 3 Apr 2006 17:32:43 +0000 (18:32 +0100)
backend has been removed there are still requests pending. This patch
flushed all the pending requests.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c

index 14d6feb75ee1d2befcf88c6f4f440f5bfb187429..6e118e7b242f7106f4a0804093bee059c5edbe1a 100644 (file)
@@ -55,6 +55,7 @@ static int tpmback_remove(struct xenbus_device *dev)
                be->backend_watch.node = NULL;
        }
        if (be->tpmif) {
+               vtpm_release_packets(be->tpmif, 0);
                tpmif_put(be->tpmif);
                be->tpmif = NULL;
        }